package com.gitee.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gitee.pojo.Order;
import com.gitee.vo.OrderVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface OrderMapper extends BaseMapper<Order> {

    List<OrderVo> selectOrderVos(@Param("pageNum") Integer pageNum, @Param("pageSize") Integer pageSize,
                                 @Param("cookbookType") Integer cookbookType,
                                 @Param("orderStatus") Integer orderStatus,
                                 @Param("orderType") Integer orderType,
                                 @Param("userId") Integer userId);
    OrderVo getOrderVo(@Param("userId") Integer userId, @Param("orderId") Integer orderId);
}
